package com.tap.controller;

import com.tap.common.BaseResult;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/user")
public class UserController {

    @RequestMapping(value = "/sayHello")
    public BaseResult sayHello(@RequestParam("name") String name){
        String s = "hello" + name;
        BaseResult baseResult = new BaseResult();
        baseResult.setCode(1);
        baseResult.setMsg("haha");
        baseResult.setData(s);
        return baseResult;
    }
}
